<?php
/*----------------------------------------------------------------------
 * 公用函数模型管理
 * Author: copy.he
----------------------------------------------------------------------*/

namespace Common\Logic;

class AgentRebateLogic{

	/**
	 * @desc 更换上级代理的影院,删除原上家代理为影院设置的计费方式和影院的余额
	 * @param $cinema_id
	 */
	public function setAgentCinemaMoney($cinema_id) {
		$map['pid']= $cinema_id;
		return M('agent_cinema_setting')->where($map)->delete();
	}


}
